package model;

import com.jfinal.plugin.activerecord.Model;

/**
 * Created by BaiYunfei on 2017/6/14.
 */
public class Teacher extends Model<Teacher> {

    public static final Teacher dao = new Teacher();

    public Teacher findByUserId(Long userId){
    	return findFirst("SELECT * FROM Teacher WHERE [ID]=?",userId);
    }
}
